<div class="block">
	<div class="block-title">待付月份明细</div>
	<div class="block-body" style="width:auto;margin-top: -30px">
		<form action="<?php echo $this->createUrl("payment/payForMonth/owner_id/$owner_id/step/1") ?>" method="post">
			<?php $this->widget('zii.widgets.grid.CGridView', array(
				'id'=>'selectMonths-grid',
				'dataProvider'=>$dataProvider,
				'columns'=>array(
					array('name' => '选择', 'value' => '"<input type=\'checkbox\' checked=\'checked\' name=\'months[]\' value=\'{$data->month}\' />"', "type" => "raw"),
					array('name' => '月份', 'value' => 'date("Y-m", strtotime($data->month))'),
					array('name' => '加盟账号', 'value' => '$data->owner_id'),
					array('name' => '注册会员数', 'value' => '$data->joinmb'),
					array('name' => '首次订单数', 'value' => '$data->firstordernum'),
					array('name' => '首次订单总金额', 'value' => '$data->firstorderamount'),
					array('name' => '佣金模式', 'value' => '$data->program'),
					array('name' => '余额', 'value' => '$data->total_earn'),
				),
			)); ?>
			<input type="submit" value="下一步" />
		</form>
	</div>
</div>